<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Dialog Framework <span class="subitem">Basic</span>
    </ui:define>

    <ui:define name="description">
        An external page can be displayed in a dynamically generated dialog on runtime.
    </ui:define>

    <ui:param name="documentationLink" value="/core/dialogframework"/>

    <ui:define name="implementation">
        <div class="card">
            <h:form>
                <p:commandButton value="View" icon="pi pi-home" action="#{dfView.viewProducts}" styleClass="mr-2" />
                <p:commandButton value="Options" icon="pi pi-cog" action="#{dfView.viewProductsCustomized}" styleClass="mr-2 ui-button-outlined"/>
                <p:commandButton value="Responsive" icon="pi pi-cog" action="#{dfView.viewResponsive}" styleClass="mr-2 ui-button-outlined"/>
                <p:commandButton value="larger than viewport" icon="pi pi-arrows-v" action="#{dfView.viewProductsLargerThanViewport()}" styleClass="ui-button-outlined"/>
            </h:form>
        </div>
    </ui:define>

    <ui:define name="more-source-tabs">
        <p:tab title="/ui/df/viewProducts.xhtml">
            <f:attribute name="flatten" value="true"/>
        </p:tab>
        <p:tab title="/ui/df/viewResponsive.xhtml">
            <f:attribute name="flatten" value="false"/>
        </p:tab>
        <p:tab title="/ui/df/viewProductsLargerThanViewport.xhtml">
            <f:attribute name="flatten" value="false"/>
        </p:tab>
    </ui:define>

</ui:composition>
